]> dgit.raspbian.org Git - gnome-shell.git/commit
shellDBus: Add a real error reporting system to InstallExtensionRemote
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 16 Jun 2012 03:20:36 +0000 (23:20 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 2 Jul 2012 22:29:56 +0000 (18:29 -0400)
commit79493979588166ffdb88c606ed71873cdd7d4ea6
tree036d5c19aafa9ad789fcc43aff7f1007ef2018de
parent1d1359b58fdc91230494b0193ad7aa1a138220f5
shellDBus: Add a real error reporting system to InstallExtensionRemote

Instead of using the 'extension-state-changed' signal to relay errors,
use DBus's native error mechanism to inform the method caller that the
call has failed. This requires making the method actually asynchronous
so that we don't block the browser, which is stuck waiting for a reply
from the browser plugin. To ensure this, we need to modify the browser
plugin API to ensure its extesion installation method is asynchronous.

Additionally, this lets us remove the awful, broken hacks that we used
when a user clicked the "Cancel" button, replacing it by a DBus return
value.

https://bugzilla.gnome.org/show_bug.cgi?id=679099
browser-plugin/browser-plugin.c
js/ui/extensionDownloader.js
js/ui/shellDBus.js